<?php

namespace App\Repositories\Admin;

use App\BaseRepository;

class OrderRepository extends BaseRepository
{
    //模型名称
    protected $modelName = "App\Model\Order";

    protected $allowApiMethod = ['index','show'];

    protected function relationLoad()
    {
        return ['createUser'];
    }

    protected function getShowRespondData($model)
    {
        return $model->load(['createUser','product']);
    }
}